package com.apache.portal.weixin.entity.send;

import org.jdom.Document;

/**
  * description: 回复文本消息模型
  * @author Hou DaYu 创建时间：下午02:00:20
 */
public class WxSendTextMsg extends WxSendMsg {

	private String content;

	public WxSendTextMsg(WxSendMsg msg, String content) {
		super(msg);
		setMsgType("text");
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public Document toDocument() {
		Document doc = super.toDocument();
		createElement(doc.getRootElement(), "Content", getContent());
		return doc;
	}
}
